package com.cdtye.shuoh.domain.rule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdtye.common.mybatiscore.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 规则条件表
 * @author 
 * @date 2023-03-03
 */
@ApiModel("规则条件表")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("IOT_RULE_CONDITIONS")
public class RuleConditions extends BaseEntity {
    
    @ApiModelProperty(value = "规则标识")
    private String ruleIdentification;

    @ApiModelProperty(value = "属性ID")
    private String propertiesId;

    @ApiModelProperty(value = "比较模式(<,>,<=,>=,between,in)")
    private String comparisonMode;

    @ApiModelProperty(value = "between 必须是两个值[1,20] in必须是数组[1,2,3,4]")
    private String comparisonValue;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "逻辑删除")
    private String delFlag;

    @ApiModelProperty(value = "启用状态，0禁用，1启用")
    private String state;

    @TableField(exist = false)
    private String propertiesName;


}